import request from '@/utils/request'
export function getTechonlogyCat(parent_id = 0) {
  return request({
    url: '/api/sl_technology/getlist',
    method: 'post',
    data: { page_no: 1, limit: 1000, sort: 'id', where: {
      and: [{ field: 'parent_id', operator: '=', value: parent_id }]
    }}
  })
}
export function queryFileStation(keyword,technology_types,scope,logic='and') {
  return request({
    url: '/api/devfile/query',
    method: 'post',
    data: {keyword:keyword,technology_type:technology_types,scope:scope,logic:logic}
  })
}
export function queryFilePublic(keyword,scope,logic='and') {
  return request({
    url: '/api/querypage/public',
    method: 'post',
    data: {key_word:keyword,scope:scope,logic:logic}
  })
}

export function queryFileTree(keyword,station_id,scope='',logic='and') {
  return request({
    url: '/api/querypage/search',
    method: 'post',
    data: {key_word:keyword,station_id:station_id,scope:scope,logic:logic}
  })
}
